<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Fang extends Base
{
    public function setFangXiaoquAttribute($value)
    {
        $this->attributes['fang_xiaoqu'] = $value ?: "";
    }
    public function setFangAddrAttribute($value)
    {
        $this->attributes['fang_addr'] = $value ?: "";
    }

    public function setFangConfigAttribute($value)
    {
        $this->attributes['fang_config'] = implode($value,',');
    }


    public function setFangPicAttribute($value)
    {
        $this->attributes['fang_pic'] = $value ?: "";
    }
    public function setFangRegionAttribute($value)
    {
        $this->attributes['fang_region'] = $value ?: 0;
    }
    public function setFangCityAttribute($value)
    {
        $this->attributes['fang_city'] = $value ?: 0;
    }
}
